package com.demo.task.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.demo.config.DSKey;
import com.demo.task.entity.TmBrandSales;
import com.demo.task.mapper.TmBrandSalesMapper;
import com.demo.task.service.ITmBrandSalesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * SCMS-品牌表 服务实现类
 * </p>
 *
 * @author 翌擎科技
 * @since 2021-09-16
 */
@Service
@DS(DSKey.TASK)
public class TmBrandSalesServiceImpl extends ServiceImpl<TmBrandSalesMapper, TmBrandSales> implements ITmBrandSalesService {

    @Override
    public List<TmBrandSales> queryAll() {
        return baseMapper.queryAll();
    }

    @Override
    public int deleteById(String brandCode) {
        return baseMapper.deleteByIdA(brandCode);
    }
}
